 package org.edu.modules.pub.service.impl;

 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.edu.modules.pub.entity.VeFileImage;
 import org.edu.modules.pub.mapper.VeFileImageMapper;
 import org.edu.modules.pub.service.IVeFileImageService;
 import org.springframework.stereotype.Service;






 @Service
 public class VeFileImageServiceImpl
   extends ServiceImpl<VeFileImageMapper, VeFileImage>
   implements IVeFileImageService
 {
   public Integer saveForDeal(VeFileImage veFileImage) {
/* 20 */     String url = veFileImage.getSourcefile();
/* 21 */     long size = veFileImage.getSize();
/* 22 */     veFileImage.setExt(url.substring(url.lastIndexOf(".") + 1));
/* 23 */     veFileImage.setName(url.substring(url.lastIndexOf("/") + 1));
/* 24 */     if (save(veFileImage)) {
/* 25 */       return veFileImage.getId();
     }
/* 27 */     return Integer.valueOf(0);
   }
 }



